From 822698ea04fb5bc583c8ba14bda0401f91dcad11 Mon Sep 17 00:00:00 2001 From: robertlipe Date: Wed, 10 Jul 2013 00:14:34 +0000 Subject: [PATCH] Fix problem in self-closing tags in GPX extensions, such as would be found in geocaches with no travel bugs git-svn-id: http://gpsbabel.googlecode.com/svn/trunk@4415 f51c46e8-681c-474f-0cfe-069cfd0219fb --- gpsbabel/gpx.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gpsbabel/gpx.cc b/gpsbabel/gpx.cc index 1b57bdbf4..da7b551b3 100644 --- a/gpsbabel/gpx.cc +++ b/gpsbabel/gpx.cc @@ -1429,6 +1429,8 @@ fprint_xml_chain(xml_tag* tag, const waypoint* wpt) if (!tag->cdata && !tag->child) { write_tag_attributes(tag); + // No children? Self-closing tag. + writer.writeEndElement(); } else { write_tag_attributes(tag); -- 2.30.2